package com.jz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Hasee on 2022-03-07.
 */
@RestController
public class ConsumerController {
    @Autowired
    private ProviderProxy providerProxy;

    @GetMapping("testConsumer")
    public String testConsumer(){
        String s = providerProxy.testProvider();
        return s;
    }
}
